<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<html>
<head><title>Scalar Soft - ChipTrac</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>

</head>
<BODY bgColor="#FDF5E6" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
    <html:form action="/releaseSendMail.do" type="com.scalar.chiptrack.operations.release.forms.ReleaseSendMailForm">
    <table bgcolor='#FFFFFF' border='0' cellpadding='0' cellspacing='0' width='100%' bordercolor='#993333'>
        <tr>
            <td>
                <table cellpadding='0' cellspacing='0' bgcolor='FDF5E6' border="0" width="100%" align=center>
                    <tr>
                        <td valign=center colspan='2' bgcolor="#993333" align='center'>
                            <font class='NArialW'><font color='#FFFFFF'><img height=20 width='28' src="<%=chipTracContext%>/jsp/includes/images/email_icon.jpg">
                                <logic:equal value="Assembly" name="releaseSendMailForm" property="processType">Assembly Release Mail</logic:equal>
                                <logic:equal value="Test" name="releaseSendMailForm" property="processType">Test Release Mail</logic:equal>
                            </font></font>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2'><chiptrack:info styleClass="NArialL"/></td>
                    </tr>
                    <tr>
                        <td colspan='2'><chiptrack:errors styleClass="NArialL"/></td>
                    </tr>
                    <tr>
                        <td colspan='2' align='right'>
                            <a href="javascript:window.close();" title='Click here to close this window' onMouseOver="window.status='Click here to close this window';return true"><font style="font-weight:bold" class='NArialS'>[Close this window]</font></a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2'>
                            <img height=5 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif">
                        </td>
                    </tr>
                    <tr>
                        <td width="10%">&nbsp;</td>
                        <td width="95%" bgcolor='#FDF5E6'><INPUT align="left" border="0" maxLength=100 name="txtErrMsg" size="100"  style="BACKGROUND-COLOR:#FDF5E6; BORDER-BOTTOM: thin; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP: thin; CLEAR: none; COLOR: red;font-family: arial;font-size: 10pt;font-weight:bold " value="" readOnly></td>
                    </tr>
                    <tr><td colspan='2'><img height=5 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <tr>
                                    <td width="15%"><font color='#003333'>FROM:</font></td>
                                    <td width="85%"><bean:write name='releaseSendMailForm' property='fromUser'/></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img height=5 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
                    <!-- DISPLAY "TO" VALUES - START - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <nested:iterate id="sendMailObj" name="releaseSendMailForm" property="toRecipientsEmailsList" indexId="emailIndex" type="com.scalar.chiptrack.operations.release.ReleaseSendMail">
                                    <tr>
                                        <td width="15%" class='NArialL'>
                                            <font color='#990000'>TO:</font>
                                        </td>
                                        <td width='80%'>
                                            <nested:write property="emailUser" />
                                        </td>
                                        <td width='5%' align='left'>&nbsp;</td>
                                    </tr>
                                </nested:iterate>
                                <tr><td colspan='7'><FONT id="font1"></FONT></TD></TR>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <nested:iterate id="sendMailObj" name="releaseSendMailForm" property="ccRecipientsEmailsList" indexId="emailIndex" type="com.scalar.chiptrack.operations.release.ReleaseSendMail">
                                    <tr>
                                        <td width="15%" class='NArialL'>
                                            <font color='#990000'>CC:</font>
                                        </td>
                                        <td width='50%'>
                                            <nested:write property="emailUser" />
                                        </td>
                                        <td width='35%' align='left'>&nbsp;</td>
                                    </tr>
                                </nested:iterate>
                                <tr><td colspan='7'><FONT id="font2"></FONT></TD></TR>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <nested:iterate id="sendMailObj" name="releaseSendMailForm" property="bccRecipientsEmailsList" indexId="emailIndex" type="com.scalar.chiptrack.operations.release.ReleaseSendMail">
                                    <tr>
                                        <td width="15%" class='NArialL'>
                                            <font color='#990000'>BCC:</font>
                                        </td>
                                        <td width='80%'>
                                            <nested:write property="emailUser" />
                                        </td>
                                        <td width='5%' align='left'>&nbsp;</td>
                                    </tr>
                                </nested:iterate>
                                <tr><td colspan='7'><FONT id="font3"></FONT></TD></TR>
                            </table>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img height=5 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
                    <tr><td colspan='2'><img height=5 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <tr>
                                    <td width="15%" class="NArialL">Subject:</td>
                                    <td width='85%'><html:text name='releaseSendMailForm' property='subject' size='83' maxlength='200' styleClass='txfield'/></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img height=15 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td class="NArialL">Message:</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <html:textarea cols="100" rows="5" name='releaseSendMailForm' property='message' disabled='true' styleClass='txfield'/>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0' width='100%' class='NArialL'>
                                <tr>
                                    <td><font class="NArialL">&nbsp;</font></td>
                                    <td>
                                        <font class='NArialL'>
                                           Attach as <html:radio name='releaseSendMailForm' property='attachMIMEType' value="HTML" disabled='true' />&nbsp;HTML Format &nbsp;&nbsp;
                                        </font>
                                        <font class='NArialL'>
                                           <html:radio name='releaseSendMailForm' property='attachMIMEType' value="PDF" disabled='true' />&nbsp;Adobe PDF Version&nbsp;&nbsp;
                                        </font>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
                    <tr>
                        <td colspan='2' align=center>
                            <a href="javascript:window.close();" onMouseOver="window.status='Click here to close this window';return true"><font class='NArialL'>[Close This Window]</font></a>
                        </td>
                    </tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                    <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                </table>
            </td>
        </tr>
    </table>
    </html:form>
</BODY>
</html>
